/**
 * Project Name:PayOrderMapper.java
 * File Name:PayOrderMapper.java
 * Date:2018/7/28 下午9:10
 * Copyright (c) 2018, zhang.xiangyu@foxmail.com All Rights Reserved.
*/
package com.meatball.base.pay.order.dao;

import com.meatball.base.pay.order.model.PayOrder;

import java.util.List;

/**
 * @Title: PayOrderMapper.java
 * @Description: todo(订单)
 * @Author 張翔宇
 * @Date 2018/7/28 下午9:10
 * @Version V1.0
 */
public interface PayOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PayOrder record);

    int insertSelective(PayOrder record);

    PayOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PayOrder record);

    int updateByPrimaryKey(PayOrder record);

    /**
     * 根据订单号查询订单信息
     * @param outTradeNo
     * @return
     */
    PayOrder selectByOutTradeNo(String outTradeNo);

    /**
     * 根据条件查询列表信息
     * @param record
     * @return
     */
    List<PayOrder> selectList(PayOrder record);
}